package org.vincen.helloworld.rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;
//远程接口必须集成java.rmi.Remote接口
public interface Server extends Remote {
	//所有在Remote接口里声明的方法都应该抛出RemoteException异常
	String helloWorld(String name) throws RemoteException;

	Person getPerson(String name, int age) throws RemoteException;
}
